<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	document.location	= res.data.forward;
}else{
	alert('出错了，请重新尝试！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#ajaxForm').ajaxForm(updateOptions); 
}); 
</script>
<div id="content">
<form id="ajaxForm" action="{url('Page','SaveEdit')}" method="post">
<h3 class="title">{if $this->data['id']>0}修改{else}添加{/if}单页专题</h3>
<table width="95%" cellspacing="1" cellpadding="2" border="0" class="admin-table">
	<tr><td class="list_text in">专题名称</td><td class="list_input"><input name="name" id="name" type="text" size="50" {if $this->data['info']}value="{$this->data['info']['name']}"{/if} /><span etype='error_info' class="error_info" id="name_info"></span></td></tr>
	<tr><td class="list_text in">专题URL</td><td class="list_input"><input name="url" id="url" type="text" size="50" {if $this->data['info']}value="{$this->data['info']['url']}"{/if} /><span etype='error_info' class="error_info" id="url_info"></span></td></tr>
	<tr><td class="list_text in">页面标题</td><td class="list_input"><textarea name="title" id="title" cols="60" rows="5">{$this->data['info']['title']}</textarea><span etype='error_info' class="error_info" id="title_info"></span></td></tr>
	<tr><td class="list_text in">页面关键词</td><td class="list_input"><textarea name="keywords" id="keywords" cols="60" rows="5">{$this->data['info']['keywords']}</textarea><span etype='error_info' class="error_info" id="keywords_info"></span></td></tr>
	<tr><td class="list_text in">页面描述</td><td class="list_input"><textarea name="descriptions" id="descriptions" cols="60" rows="5">{$this->data['info']['descriptions']}</textarea><span etype='error_info' class="error_info" id="descriptions_info"></span></td></tr>
	<tr><td class="list_text in">专题内容</td><td class="list_input"><textarea name="content" id="txtcontent"  style="width:500px;height:600px">{$this->data['info']['content']}</textarea><span etype='error_info' class="error_info" id="content_info"></span></td></tr>
	<tr>
		<td class="list_text"></td>
		<td class="list_input">
		<input id="btnSave" type="submit" value="保存" />&nbsp;&nbsp;<input  type="button" value="返回" onclick="history.back()" /><input name="id" type="hidden" value="{$this->data['id']}" />
		</td>
	</tr>
</table>
</form>
</div>
<script src="{$this->data['baseurl']}js/editor/kindeditor/kindeditor.js"></script>
<script>
KE.show({
id : 'txtcontent',
allowUpload : false
});
</script>